import React from 'react';

type ButtonProps = {
    color: string;
    text: string;
};

type ContainerProps = ButtonProps & {
    /** the height of the container (value used with 'px') */
    height: number;
    width: number;
};

const Container: React.FC<ContainerProps> = ({ color, height, width, text }) => {
    return <div style={{ backgroundColor: color, height: `${height}px`, width: `${width}px` }}>{text}</div>;
};

export default Container;
